﻿@ECHO OFF

IF "%1"=="" GOTO NO_ARGS


SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319;


ECHO Deploying to server %1
ECHO ------------------------------------------------

ECHO %DATE% %TIME%: Deploying centraldba_db Database
msbuild \\server_name\share_name\centraldba_db\code\centraldba_db\centraldba_db.dbproj /nologo /verbosity:minimal /target:Deploy /p:Configuration=Release /p:TargetConnectionString="Data Source=%1;Integrated Security=true;Pooling=false" /p:DeployToDatabase=True /p:DeployToScript=False
ECHO.

GOTO EXIT_CODE

:NO_ARGS
ECHO ERROR:  A server instance name must be passed in for this deployment script to work.
GOTO EXIT_CODE

:EXIT_CODE
